<?php
//header("Content-type: text/html; charset=utf8");
include 'connect.php';//调用connect.php文件
$something1=$_GET['something1'];//'小明';//
$something2=$_GET['something2'];//'16';//
$something3=$_GET['something3'];//'0';//
if ($con->connect_error) {
	die("连接失败：".$con->connect_error);
}
else 
{
 	$sql="INSERT INTO `1students`(`name`, `age`, `xb`) VALUES ('$something1','$something2','$something3');";
 	$res=$con->query($sql);
 	if($res){
    $arr['status'] = 1;
    $arr['info'] = 'success';
	}else{
    $arr['status'] = 0;
    $arr['info'] = 'error';
	}
	echo json_encode($arr);
	die;
}
 
?>